var app = getApp();
var com = require('../../common.js');
Page({
  data: {
    path:''
  },
  onLoad: function(options) {
    var _this = this
    _this.onShopInfo()
    _this.onShopStatus()
  },
  //获取信息
  onShopInfo() {
    var _this = this,
      i = _this.data.information
    com.link(app.link.onShopCentent + wx.getStorageSync('store') + '.st', {}, function(res) {
      console.log(res)
      _this.setData({
        shopInfo: res.data.data
      })
      console.log(res.data.data)
    }, "GET")
  },
  //获取信息
  onShopStatus() {
    var _this = this,
      i = _this.data.information
    com.link(app.link.onSaveOrderInfo + wx.getStorageSync('store') + '.st', {
      code: 'meituan'
    }, function (res) {
      console.log(res)
      _this.setData({
        info: res.data.response
      })
      _this.onSaveZhang()
      console.log(res.data.data)
    }, "GET")
  },
  //获取盖章
  onSaveZhang() {
    var _this = this
    com.link(app.link.onGetTheSeal + wx.getStorageSync('store') + '.st', {}, function (res) {
      console.log(res)
      _this.setData({
        path: res.data.response.path
      })
    }, "GET")
  },
  onReady: function() {},
  onShow: function() {},
  onHide: function() {},
  onUnload: function() {},
  onPullDownRefresh: function() {},
  onReachBottom: function() {},
  onShareAppMessage: function() {}
})